﻿<UserControl x:Class="Reflection.Controls.PerformanceInfoControl"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
			 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
			 mc:Ignorable="d" 
			 >
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <StackPanel>
        <TextBlock Text="{Binding Name, Mode=OneWay, FallbackValue=Name}" TextWrapping="Wrap" Style="{StaticResource H1TextBlock}" />
        <TextBlock Style="{StaticResource H2TextBlock}">
            <Run Text="Hits:" />
            <Run Text="{Binding Hits, Mode=OneWay, FallbackValue='0'}" />
        </TextBlock>
        <TextBlock Style="{StaticResource H2TextBlock}">
            <Run Text="Start time:" />
            <Run Text="{Binding StartTime, Mode=OneWay, StringFormat=T}" />
        </TextBlock>
        <TextBlock Style="{StaticResource H2TextBlock}">
            <Run Text="Stop time:" />
            <Run Text="{Binding StopTime, Mode=OneWay, StringFormat=T}" />
        </TextBlock>
    </StackPanel>
</UserControl>
